package org.codeart.bridge.pay;

import java.math.BigDecimal;

public class VXPay extends Pay {

    public VXPay(PayMode mode) {
        super(mode);
    }

    @Override
    public String transfer(String uid, String tid, BigDecimal amount) {
        System.out.println("微信渠道支付划账开始......");
        boolean secure = mode.secure(uid);
        System.out.println("微信渠道支付风险校验: " + uid + "," + tid + "," + secure);

        if (!secure) {
            System.out.println("微信渠道支付划账失败!!");
            return "500";
        }

        System.out.println("微信渠道支付划账成功!金额: " + amount);
        return "200";
    }
}
